package com.pty.demo.behaviour.mediator;

/**
 * @author pengty
 * @date 2020/3/14
 */
public class TvConcreteColleague extends AbstractColleague {

    public TvConcreteColleague(String name, HomeKitMediator homeKitMediator) {
        super(name, homeKitMediator);
    }

    @Override
    public void receive() {
        System.out.println("我是电视 我收到消息了");
    }

    @Override
    public void send() {
        System.out.println("我是电视  我发出了一条消息");
        homeKitMediator.relay(this);
    }
}
